package com.ruoyi.foreignlanguage.service.impl;

import com.ruoyi.foreignlanguage.domain.ExamForeignLanguage;
import com.ruoyi.foreignlanguage.mapper.ExamForeignLanguageMapper;
import com.ruoyi.foreignlanguage.service.IExamForeignLanguageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamForeignLanguageServiceImpl implements IExamForeignLanguageService {

    @Autowired
    private ExamForeignLanguageMapper foreignLanguageMapper;

    @Override
    public ExamForeignLanguage selectForeignLanguageById(Long id) {
        return foreignLanguageMapper.selectForeignLanguageById(id);
    }

    @Override
    public List<ExamForeignLanguage> selectForeignLanguageList() {
        return foreignLanguageMapper.selectForeignLanguageList();
    }

    @Override
    public int insertForeignLanguage(ExamForeignLanguage foreignLanguage) {
        return foreignLanguageMapper.insertForeignLanguage(foreignLanguage);
    }

    @Override
    public int updateForeignLanguage(ExamForeignLanguage foreignLanguage) {
        return foreignLanguageMapper.updateForeignLanguage(foreignLanguage);
    }

    @Override
    public int deleteForeignLanguageById(Long id) {
        return foreignLanguageMapper.deleteForeignLanguageById(id);
    }
}
